﻿#ifndef ONEGIS_PSDE_DATASOURCE_IC_DYNAMICDATACLASS_H
#define ONEGIS_PSDE_DATASOURCE_IC_DYNAMICDATACLASS_H

#include <memory>
#include "libengine.h"
#include "PbFormatData.pb.h"

using namespace onegis::protobuf::model;

namespace onegis {
namespace psde {
namespace datasource {

class LIBENGINE_API IC_DynamicDataClass
{
public:
    virtual ~IC_DynamicDataClass() {}

    /* 新增 动态 数据 */
    virtual bool save(const PbDynamicDatas &dynamicDatas, PbResponseResult &response) = 0;

    /* 查询动态数据 */
    virtual bool query(const PbDynamicDataFilter& dynamicDataFilter, PbResponseResult &response)= 0;

    /* 设置进度回调函数和自定义参数 */
    virtual void setProgressCallBack(ProgressCallBackPTR callback, void *p) = 0;
};

typedef std::tr1::shared_ptr<IC_DynamicDataClass> DynamicDataClassPtr;
}
}
}



#endif
